home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / futils / futils-2.0 / fu2-diff.zoo / lib / lib-diff next >
Encoding:
Text File  |  1991-06-15  |  1.4 KB  |  51 lines

  1. diff -c fileutils-2.0/lib/getdate.y fileutils-2.0-st/lib/getdate.y
  2. *** fileutils-2.0/lib/getdate.y    Sun May 19 18:37:06 1991
  3. --- fileutils-2.0-st/lib/getdate.y    Thu Jun 13 01:03:45 1991
  4. ***************
  5. *** 22,33 ****
  6.   #include <time.h>
  7.   #else
  8.   #include <sys/types.h>
  9. ! #if    defined(USG)
  10.   /*
  11.   **  Uncomment the next line if you need to do a tzset() call to set the
  12.   **  timezone, and don't have ftime().  Some SystemV releases, I think.
  13.   */
  14. ! /*#define NEED_TZSET */
  15.   struct timeb {
  16.       time_t        time;        /* Seconds since the epoch    */
  17.       unsigned short    millitm;    /* Field not used        */
  18. --- 22,37 ----
  19.   #include <time.h>
  20.   #else
  21.   #include <sys/types.h>
  22. ! #if    defined(USG) || defined(atarist)            /* (sjk)++ */
  23.   /*
  24.   **  Uncomment the next line if you need to do a tzset() call to set the
  25.   **  timezone, and don't have ftime().  Some SystemV releases, I think.
  26.   */
  27. ! #if defined(atarist)                               /* (sjk)++ */
  28. ! #define NEED_TZSET 
  29. ! extern time_t _timezone;
  30. ! #endif
  31.   struct timeb {
  32.       time_t        time;        /* Seconds since the epoch    */
  33.       unsigned short    millitm;    /* Field not used        */
  34. ***************
  35. *** 801,807 ****
  36. --- 805,817 ----
  37.       (void)time(&ftz.time);
  38.       /* Set the timezone global. */
  39.       tzset();
  40. + #if !defined(atarist)                               /* (sjk)++ */
  41.       ftz.timezone = (int) timezone / 60;
  42. + #else
  43. +     ftz.timezone = (int) _timezone / 60;
  44. + #endif
  45.   #else
  46.       (void)ftime(&ftz);
  47.   #endif    /* defined(NEED_TZSET) */
  48.